package com.zerotwo.exam.user.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zerotwo.exam.user.model.Courses;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zerotwo.exam.user.vo.CourseInfoVo;
import org.apache.ibatis.annotations.Mapper;


/**
 * @author 02
 * @version 1.0
 * @Date 2024/7/5
 * @Description 课程信息 Mapper 接口
 */
@Mapper
public interface CoursesMapper extends BaseMapper<Courses> {
    IPage<CourseInfoVo> getCourseList(IPage<CourseInfoVo> page, QueryWrapper<CourseInfoVo> ew, Boolean isStudent);
    CourseInfoVo getCourseInfo(Integer courseId);
    Courses getCourseByClassId(Integer classId);
}
